package cn.qayy.service;


import java.util.List;
import java.util.Map;

import org.springframework.web.bind.annotation.RequestParam;

import com.github.pagehelper.PageInfo;

import cn.qayy.dto.CashFlowDTO;
import cn.qayy.po.CashFlow;
import cn.qayy.po.Policy;

/**
 * @author wangyu
 * 中标库接口
 */
public interface ICashFlowService extends BasicService{
	/**
	 * 分页查询
	 * @param params
	 * @return
	 */
    PageInfo<CashFlow> selectCashFlowBy(CashFlowDTO dto) throws Exception;
    
    List<CashFlowDTO> selectCashFlowForDown(@RequestParam Map<String, Object> params) throws Exception;
    /**
     * 通过id查询中标库
     * @param params
     * @return
     */
    CashFlow selectCashFlowByID(@RequestParam Integer basisId) throws Exception;

    /***
     * 查询中标库中各字段拼接的key,用于去重复项判断
     * @return
     */
	List<? extends String> selectPzKeys() throws Exception;
	/***
	 * 根据当前录入的协议，获取对应的中标价
	 * @param policy
	 * @return
	 */
	CashFlow getCashFlow(Map<String,Object> params) throws Exception;
	
	List<Map<String,String>> selectCashFlowAuto() throws Exception;

	List<Integer> selectIdsByMap(CashFlowDTO dto);
}
